|
VLab Common 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.psnc.vlab.util.gui.action.helper.ActionHelper
public final class ActionHelper
ActionHelper class - contains a set of utility methods for the Swing
components
| Constructor Summary | |
|---|---|
ActionHelper()
|
|
| Method Summary | |
|---|---|
static void |
addObserver(ActionType observable,
ActionType observer)
Add action observer to the given observable object |
static void |
addObserver(ActionType observable,
java.util.Observer observer)
Add action observer to the given observable object |
static void |
setAction(javax.swing.AbstractButton component,
AbstractActionDefault action,
boolean enabled)
Set action for the given component. |
static void |
setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled)
Set action for the given component. |
static void |
setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled,
boolean associate)
Set action for the given component. |
static void |
setSelected(ActionDecorator aDecorator,
boolean selected)
Change selection of all AbstractButton components associated with
this action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionHelper()
| Method Detail |
|---|
public static void setAction(javax.swing.AbstractButton component,
AbstractActionDefault action,
boolean enabled)
component - swing component, instance of AbstractButtonaction - instance of action AbstractActionDefaultenabled - specifies whether action is enabled
public static void setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled)
component - swing component, instance of AbstractButtonactionType - action type, instance ActionTypeenabled - specifies whether action is enabled
public static void setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled,
boolean associate)
component - swing component, instance of AbstractButtonactionType - action type, instance ActionTypeenabled - specifies whether action is enabledassociate - specifies whether source components should be associated
with this action
public static void setSelected(ActionDecorator aDecorator,
boolean selected)
AbstractButton components associated with
this action.
aDecorator - instance of ActionDecoratorselected - specifies whether AbstractButton should be
selected or not
public static void addObserver(ActionType observable,
ActionType observer)
observable - observable instance Observableobserver - observer instance Observer
public static void addObserver(ActionType observable,
java.util.Observer observer)
observable - observable instance Observableobserver - observer instance Observer
|
VLab Common 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||